home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / misc / ispell-3.001 / ispell-3~ / ispell-3.1 / languages / portugues / Makefile next >
Makefile  |  1995-10-12  |  4KB  |  120 lines

  1. #
  2. # $Id: Makefile,v 1.1 1995/04/21 04:40:06 geoff Exp $
  3. #
  4. # Copyright 1995, Geoff Kuenning, Granada Hills, CA
  5. # All rights reserved.
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. #
  11. # 1. Redistributions of source code must retain the above copyright
  12. #    notice, this list of conditions and the following disclaimer.
  13. # 2. Redistributions in binary form must reproduce the above copyright
  14. #    notice, this list of conditions and the following disclaimer in the
  15. #    documentation and/or other materials provided with the distribution.
  16. # 3. All modifications to the source code must be clearly marked as
  17. #    such.  Binary redistributions based on modified source code
  18. #    must be clearly marked as modified versions in the documentation
  19. #    and/or other materials provided with the distribution.
  20. # 4. All advertising materials mentioning features or use of this software
  21. #    must display the following acknowledgment:
  22. #      This product includes software developed by Geoff Kuenning and
  23. #      other unpaid contributors.
  24. # 5. The name of Geoff Kuenning may not be used to endorse or promote
  25. #    products derived from this software without specific prior
  26. #    written permission.
  27. #
  28. # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  29. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  31. # ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  32. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  37. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  38. # SUCH DAMAGE.
  39. #
  40. # This makefile is an example of how you might write a makefile for a
  41. # simple language which has only a single dictionary available.  For
  42. # an example of a complex makefile, look at the makefile for English.
  43. #
  44. # $Log: Makefile,v $
  45. # Revision 1.1  1995/04/21  04:40:06  geoff
  46. # Initial revision
  47. #
  48. #
  49.  
  50. SHELL = /bin/sh
  51. MAKE = make
  52.  
  53. PATHADDER    =    ../..
  54. BUILDHASH    =    buildhash
  55. UNSQ        =    unsq
  56. FIX8BIT        =    fix8bit
  57.  
  58. #
  59. # The following variables make it easy to adapt this Makefile to
  60. # numerous languages.
  61. #
  62. LANGUAGE    =    portugues
  63. DICTIONARY    =    $(LANGUAGE).words
  64. HASHFILE    =    $(LANGUAGE).hash
  65.  
  66. #
  67. # The following variables may be overridden by the superior Makefile,
  68. # based on the LANGUAGES variable in config.X.
  69. #
  70. AFFIXES    =    ./$(LANGUAGE).aff
  71.  
  72. all:    $(HASHFILE)
  73.  
  74. $(HASHFILE):    $(AFFIXES) $(DICTIONARY)
  75.     rm -f $(HASHFILE)
  76.     munchlist -v -l $(AFFIXES) $(DICTIONARY) > $(LANGUAGE).words+
  77.     $(BUILDHASH) $(LANGUAGE).words+ $(AFFIXES) $(HASHFILE)
  78.  
  79. build:
  80.     $(BUILDHASH) -s $(LANGUAGE).words+ $(AFFIXES) $(HASHFILE)
  81.  
  82. $(LANGUAGE)-alt.aff:    $(LANGUAGE)-alt.7bit $(FIX8BIT)
  83.     $(FIX8BIT) -8 < $(LANGUAGE)-alt.7bit > $(LANGUAGE)-alt.aff
  84.  
  85. #
  86. #    The following dependency can be executed when ispell is unpacked,
  87. #    to unpack the dictionaries.
  88. #
  89. unpack:    $(AFFIXES)
  90.  
  91. $(UNSQ):
  92.     set +e; \
  93.     if [ ! -x $(UNSQ) ]; \
  94.     then \
  95.         set -e; \
  96.         cd ../..; \
  97.         $(MAKE) unsq; \
  98.     else \
  99.         : ; \
  100.     fi
  101.  
  102. clean:
  103.     rm -f core *.hash *.stat *.cnt
  104.  
  105. #
  106. #    The following target is used in the English makefile, and is
  107. #    required to be present in all other language Makefiles as
  108. #    well, even though it doesn't have to do anything in those
  109. #    directories.
  110. #
  111. kitclean:
  112.  
  113. #
  114. #    The following target is used in the English makefile, and is
  115. #    required to be present in all other language Makefiles as
  116. #    well, even though it doesn't have to do anything in those
  117. #    directories.
  118. #
  119. dictclean:
  120.